package com.test;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.HashMap;

/**
 * @Description:
 * @Author: LiangJiawen
 * @Create Date Time: 2021/4/28 13:51.
 * @Update Date Time: 
 * @see
 */
public class Starter {

    public static void main(String[] args) {
        HashMap<String, Class> service = new HashMap<>();
        service.put(CommonService.class.getName(), CommonServiceImpl.class);
        try {
            Center.regist(service, 8081);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
